using System.Collections.Generic;
using KamLib;

namespace Ext.Net.UIS
{
    public class LookupEditor : TermEditor
    {
        public static LookupEditor Default = new LookupEditor();
        public override IEnumerable<AbstractComponent> NewControls(TermNode node, UisCreateControlArgs e)
        {
            if (node.Length == 0 && node.Term.LookupNameField != null)
                node.Length = node.Term.LookupNameField.Length;

            return this.NewFieldControls<SelectBox>(node, e);
        }
    }
}